<layout name="layout" />

<!-- 搜索 -->
<div class="form-div search_form_div">
    <form action="__ACTION__" method="GET" name="search_form">
		<p>
			会员名称：
	   		<input type="text" name="name" size="30" value="<?php echo I('get.name'); ?>" />
		</p>
		<p>
			联系电话：
	   		<input type="text" name="telphone" size="30" value="<?php echo I('get.telphone'); ?>" />
		</p>
		<p>
			开始日期：
	   		从 <input id="start_timefrom" type="text" name="start_timefrom" size="15" value="<?php echo I('get.start_timefrom'); ?>" /> 
		    到 <input id="start_timeto" type="text" name="start_timeto" size="15" value="<?php echo I('get.start_timeto'); ?>" />
		</p>
		<p>
			结束日期：
	   		从 <input id="end_timefrom" type="text" name="end_timefrom" size="15" value="<?php echo I('get.end_timefrom'); ?>" /> 
		    到 <input id="end_timeto" type="text" name="end_timeto" size="15" value="<?php echo I('get.end_timeto'); ?>" />
		</p>
		<p>
			来源：
	   		<input type="text" name="form" size="30" value="<?php echo I('get.form'); ?>" />
		</p>
		<p><input type="submit" value=" 搜索 " class="button" /></p>
    </form>
</div>
<!-- 列表 -->
<div class="list-div" id="listDiv">
	<table cellpadding="3" cellspacing="1">
    	<tr>
            <th >会员名称</th>
            <th >联系电话</th>
            <th >性别</th>
            <th >生日</th>
            <th >会员级别</th>
            <th >会员状态</th>
            <th >卡号</th>
            <th >介绍人</th>
            <th >账户余额</th>
            <th >开始日期</th>
            <th >结束日期</th>
            <th >来源</th>
			<th width="120">操作</th>
        </tr>
		<?php foreach ($data as $k => $v): ?>            
			<tr class="tron">
				<td  height="60"><?php echo $v['name']; ?></td>
				<td><?php echo $v['telphone']; ?></td>
				<td><?php echo $v['sex']; ?></td>
				<td><?php echo $v['birthday']; ?></td>
				<td><?php echo $v['level']; ?></td>
				<td><?php echo $v['status']; ?></td>
				<td><?php echo $v['code_number']; ?></td>
				<td><?php echo $v['intro']; ?></td>
				<td><?php echo $v['account']; ?></td>
				<td><?php echo $v['start_time']; ?></td>
				<td><?php echo $v['end_time']; ?></td>
				<td><?php echo $v['form']; ?></td>
		        <td align="center">
		        	<a href="<?php echo U('edit?id='.$v['id'].'&p='.I('get.p')); ?>" title="编辑">编辑</a> |
	                <a href="<?php echo U('delete?id='.$v['id'].'&p='.I('get.p')); ?>" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
		        </td>
	        </tr>
        <?php endforeach; ?> 
		<?php if(preg_match('/\d/', $page)): ?>  
        <tr><td align="right" nowrap="true" colspan="99" height="30"><?php echo $page; ?></td></tr> 
        <?php endif; ?> 
	</table>
</div>

<link href="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/datetimepicker/datepicker-zh_cn.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.min.css" />
<script type="text/javascript" src="__PUBLIC__/datetimepicker/time/jquery-ui-timepicker-addon.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/datetimepicker/time/i18n/jquery-ui-timepicker-addon-i18n.min.js"></script>
<script>$.timepicker.setDefaults($.timepicker.regional['zh-CN']);</script>
		<script>
$('#start_timefrom').datetimepicker(); $('#start_timeto').datetimepicker(); $('#end_timefrom').datetimepicker(); $('#end_timeto').datetimepicker(); </script>

<script src="__PUBLIC__/Admin/Js/tron.js"></script>